package com.ruoyi.business.service.impl;

import com.ruoyi.business.mapper.WmsStatisticsMapper;
import com.ruoyi.business.service.IWmsStatisticsService;
import com.ruoyi.business.vo.DeliveryVo;
import com.ruoyi.business.vo.StockVo;
import com.ruoyi.business.vo.StockWarningVo;
import com.ruoyi.business.vo.WarehouseVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WmsStatisticsServiceImpl implements IWmsStatisticsService {

    @Autowired
    private WmsStatisticsMapper wmsStatisticsMapper;

    /**
     * 库存查询
     *
     * @param query
     */
    @Override
    public List<StockVo> stock(StockVo query) {
        return wmsStatisticsMapper.stock(query);
    }

    /**
     * 入库查询
     *
     * @param query
     */
    @Override
    public List<WarehouseVo> warehouse(WarehouseVo query) {
        return wmsStatisticsMapper.warehouse(query);
    }

    /**
     * 出库查询
     *
     * @param query
     */
    @Override
    public List<DeliveryVo> delivery(DeliveryVo query) {
        return wmsStatisticsMapper.delivery(query);
    }

    /**
     * 库存预警
     *
     * @param query
     */
    @Override
    public List<StockWarningVo> stockWarning(StockWarningVo query) {
        return wmsStatisticsMapper.stockWarning(query);
    }
}
